﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Three.Service;

namespace Three.Controllers
{
    public class HomeController : Controller
    {
        public string date = string.Empty;

        public HomeController(IClock clock)
        {
            
            date = clock.GetDate();
        }

        public IActionResult Index()
        {
            ViewData["time"] = date;

            return View();
        }
    }
}